package com.csht.service;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.csht.model.City;
import com.csht.model.Province;
import com.csht.model.School;


/**
 * 用户修改我的资料service接口
 * @author chenhuiyan
 *
 */
@Service
public interface MyService {
	

	/**
	 * 根据用户id修改头像
	 * @param fileName
	 * @throws Exception
	 */
	public void updateUserHeadById(Map<String, String> fileNameAndUserId) throws Exception;
	
	/**
	 * 根据用户id修改用户名
	 * @param userIdAndUsername
	 * @throws Exception
	 */
	public void updateUsernameById(Map<String, String> userIdAndUsername) throws Exception;
	
	/**
	 * 根据用户id修改密码
	 * @param userIdAndUserPassword
	 * @throws Exception
	 */
	public void updateUserPasswordById(Map<String, String> userIdAndUserPassword) throws Exception;
	
	/**
	 * 获取省份
	 * @return
	 * @throws Exception
	 */
	public List<Province> toUpdategetAllProvice(String provinceUrl) throws Exception;
	
	/**
	 * 根据省ID获取城市
	 * @param cityUrl
	 * @param provinceId
	 * @return
	 * @throws Exception
	 */
	public List<City> toUpdategetAllCity(String cityUrl, Integer provinceId) throws Exception;
	
	/**
	 * 根据学校ID获取学校
	 * @param schoolUrl
	 * @param cityName
	 * @return
	 * @throws Exception
	 */
	public List<School> toUpdategetAllSchool(String schoolUrl, String cityName) throws Exception;
	
	/**
	 * 根据用户id修改地址
	 * @param userIdAndAddress
	 * @throws Exception
	 */
	public void updateUserAddressById(Map<String, String> userIdAndAddress) throws Exception;
	
	/**
	 * 根据用户id修改用户性别
	 * @param userIdAndGender
	 * @throws Exception
	 */
	public void updateUserGenderById(Map<String, String> userIdAndGender) throws Exception;
	
	/**
	 * 根据用户id修改QQ号
	 * @param userIdAnduserqq
	 * @throws Exception
	 */
	public void updateUserqqById(Map<String, String> userIdAnduserqq) throws Exception;
	
	/**
	 * 根据用户id修改微信号
	 * @param userIdAndUserWechat
	 * @throws Exception
	 */
	public void updateUserWechatById(Map<String, String> userIdAndUserWechat) throws Exception;
	
}
